from django.db import models

class Article(models.Model):
	slug = models.SlugField()
	title = models.CharField(maxlength=200)
	body = models.TextField()
	more = models.TextField()
	
	def generate_slug(self):
		return title

	class Admin:
		pass

class Comment(models.Model):
	article = models.ForeignKey(Article)
	body = models.TextField()
	
	class Admin:
		pass